package com.weixin.pay.model;

import java.util.Objects;

public class PayInfo {
    private String openid;
    private String body;
    private String totalFee;
    private String spBillCreateIp;
    private String goodsTag;
    private String detail;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(String totalFee) {
        this.totalFee = totalFee;
    }

    public String getSpBillCreateIp() {
        return spBillCreateIp;
    }

    public void setSpBillCreateIp(String spBillCreateIp) {
        this.spBillCreateIp = spBillCreateIp;
    }

    public String getGoodsTag() {
        return goodsTag;
    }

    public void setGoodsTag(String goodsTag) {
        this.goodsTag = goodsTag;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PayInfo payInfo = (PayInfo) o;
        return Objects.equals(openid, payInfo.openid) &&
                Objects.equals(body, payInfo.body) &&
                Objects.equals(totalFee, payInfo.totalFee) &&
                Objects.equals(spBillCreateIp, payInfo.spBillCreateIp) &&
                Objects.equals(goodsTag, payInfo.goodsTag) &&
                Objects.equals(detail, payInfo.detail);
    }

    @Override
    public int hashCode() {
        return Objects.hash(openid, body, totalFee, spBillCreateIp, goodsTag, detail);
    }

    @Override
    public String toString() {
        return "PayInfo{" +
                "openid='" + openid + '\'' +
                ", body='" + body + '\'' +
                ", totalFee='" + totalFee + '\'' +
                ", spbillCreateIp='" + spBillCreateIp + '\'' +
                ", goodsTag='" + goodsTag + '\'' +
                ", detail='" + detail + '\'' +
                '}';
    }
}
